home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Code / FIELD / effects / _lb628.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  2.7 KB  |  117 lines

  1. package Code.FIELD.effects
  2. {
  3.    import Code.FIELD.interfaces._bw350;
  4.    import Code.LIB._be548;
  5.    import Code.LIB._oo505;
  6.    import Code.LIB._tk11;
  7.    
  8.    public class _lb628 extends _be548 implements _bw350
  9.    {
  10.       public static const stDelay:int = 0;
  11.       
  12.       public static const stNormal:int = 1;
  13.       
  14.       public static const stInvisible:int = 2;
  15.       
  16.       private var pictureInd:int;
  17.       
  18.       private var bitmap:_oo505;
  19.       
  20.       private var timer:int;
  21.       
  22.       private var delay:int;
  23.       
  24.       private var _state:int;
  25.       
  26.       private var explodes:Array;
  27.       
  28.       public function _lb628(param1:Array, param2:int = 0)
  29.       {
  30.          super();
  31.          this.explodes = param1;
  32.          this.bitmap = new _oo505();
  33.          this.delay = param2;
  34.          addChild(this.bitmap);
  35.          mouseEnabled = false;
  36.          mouseChildren = false;
  37.          state = stDelay;
  38.       }
  39.       
  40.       public static function _af81(param1:Array, param2:Number, param3:int) : Array
  41.       {
  42.          var _loc4_:_vn252 = null;
  43.          var _loc5_:Array = null;
  44.          _loc4_ = new _vn252(param1,param2,param3);
  45.          _loc5_ = new Array();
  46.          while(_loc4_.state != _vn252.stInvisible)
  47.          {
  48.             _loc4_.onEnterFrame();
  49.             _loc5_.push(_tk11._ev532(_loc4_));
  50.          }
  51.          return _loc5_;
  52.       }
  53.       
  54.       public function get _ao508() : Boolean
  55.       {
  56.          return _state == stInvisible;
  57.       }
  58.       
  59.       public function set state(param1:int) : void
  60.       {
  61.          _state = param1;
  62.          switch(_state)
  63.          {
  64.             case stDelay:
  65.                timer = 0;
  66.                break;
  67.             case stNormal:
  68.                pictureInd = 0;
  69.                _xr510();
  70.          }
  71.       }
  72.       
  73.       public function get state() : int
  74.       {
  75.          return _state;
  76.       }
  77.       
  78.       public function _dx150() : void
  79.       {
  80.       }
  81.       
  82.       public function onEnterFrame() : void
  83.       {
  84.          switch(_state)
  85.          {
  86.             case stDelay:
  87.                if(++timer >= delay)
  88.                {
  89.                   state = stNormal;
  90.                }
  91.                break;
  92.             case stNormal:
  93.                if(++pictureInd >= explodes.length)
  94.                {
  95.                   state = stInvisible;
  96.                   return;
  97.                }
  98.                _xr510();
  99.                break;
  100.          }
  101.       }
  102.       
  103.       public function get display() : _be548
  104.       {
  105.          return this;
  106.       }
  107.       
  108.       private function _xr510() : void
  109.       {
  110.          var _loc1_:_oo505 = null;
  111.          _loc1_ = explodes[pictureInd];
  112.          _loc1_._vy822(this.bitmap);
  113.       }
  114.    }
  115. }
  116.  
  117.